package com.gwnet.shop.domain;

import com.gwnet.common.mybatis.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 订单货品对象 order_goods
 * 
 * @author zhangwanpeng
 * @date 2024-07-21
 */
public class OrderGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 订单号 */
    private String orderId;

    /** 所属商品 */
    private Long goodsId;

    /** 规格 */
    private Long spceGroupId;

    /** 商品标题 */
    private String goodsTitle;

    /** 规格描述 */
    private String specText;

    /** 商品图片 */
    private String showUrl;

    /** 规格图片 */
    private String imgUrl;

    /** 实际价格 */
    private Double sellPrice;

    /** 打包费 */
    private Double packageMoney;

    /** 购买数量 */
    private Integer quantity;

    /** 备注 */
    private String remark;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setSpceGroupId(Long spceGroupId) 
    {
        this.spceGroupId = spceGroupId;
    }

    public Long getSpceGroupId() 
    {
        return spceGroupId;
    }
    public void setGoodsTitle(String goodsTitle) 
    {
        this.goodsTitle = goodsTitle;
    }

    public String getGoodsTitle() 
    {
        return goodsTitle;
    }
    public void setSpecText(String specText) 
    {
        this.specText = specText;
    }

    public String getSpecText() 
    {
        return specText;
    }
    public void setShowUrl(String showUrl) 
    {
        this.showUrl = showUrl;
    }

    public String getShowUrl() 
    {
        return showUrl;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }

    public Double getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Double sellPrice) {
        this.sellPrice = sellPrice;
    }

    public Double getPackageMoney() {
        return packageMoney;
    }

    public void setPackageMoney(Double packageMoney) {
        this.packageMoney = packageMoney;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("goodsId", getGoodsId())
            .append("spceGroupId", getSpceGroupId())
            .append("goodsTitle", getGoodsTitle())
            .append("specText", getSpecText())
            .append("showUrl", getShowUrl())
            .append("imgUrl", getImgUrl())
            .append("sellPrice", getSellPrice())
            .append("packageMoney", getPackageMoney())
            .append("quantity", getQuantity())
            .toString();
    }
}
